Package-level declarations

Types

Link copied to clipboard
data class AdjustReservationRequest(val transactionReferenceNumber: String, val base: BaseTransactionRequest)

Request for creating a reservation adjustment transaction context.

Link copied to clipboard
data class BaseTransactionRequest(val lineItems: List<PaymentLineItem>, val currency: String, val merchantReference: String = "", val invoiceReference: String? = null, val customerId: String? = null, val customerEmailAddress: String? = null, val billingAddress: PostalAddress? = null, val shippingAddress: PostalAddress? = null, val metadata: Map<String, String> = emptyMap(), val customText: String? = null, val language: String? = null, val panHashVariants: List<PanHashVariant> = emptyList(), val transactionRefNumber: String? = null, val showTransactionResultScreens: Boolean? = null)

Common transaction request fields shared by purchase, refund, and reservation.

Link copied to clipboard
Link copied to clipboard
data class CancelReservationRequest(val transactionReferenceNumber: String, val acquirerId: String)

Request for creating a reservation cancellation transaction context.

Link copied to clipboard
data class CaptureRequest(val transactionReferenceNumber: String, val lineItems: List<PaymentLineItem>, val currency: String)

Request for creating a reservation capture transaction context.

Link copied to clipboard
Link copied to clipboard
data class CompletedTransaction(val transactionReferenceNumber: String, val merchantReference: String, val acquirerId: String, val amount: BigDecimal, val currency: String, val panHash: PanHashResponse? = null, val receipt: ReceiptResult? = null, val amountTip: String? = null, val cardNumber: String? = null, val cardSequenceNumber: String? = null, val cardExpirationDate: String? = null, val cardAppLabel: String? = null, val cardAppId: String? = null, val transactionTime: String? = null, val dccTransactionAmount: String? = null, val dccTransactionCurrency: String? = null, val cvm: CvmType? = null, val amountRemaining: String? = null, val partialApproval: Boolean? = null, val cardIssuingCountry: String? = null, val paymentEntryMethod: PaymentEntryMethod? = null, val protocol: PaymentProtocol = PaymentProtocol.EP2, val protocolData: ProtocolData? = null)

Acquirer-created completed transaction data.

Link copied to clipboard
Link copied to clipboard
data class ErrorReason(val code: String, val message: String)
Link copied to clipboard
data class LastPaymentResult(val state: LastPaymentResultState, val result: TransactionResult? = null)

Lookup result for the payment-domain getLastResult operation.

Link copied to clipboard
Link copied to clipboard
data class PaymentLineItem(val id: String, val totalAmountIncludingTax: BigDecimal, val sku: String? = null, val name: String? = null, val quantity: BigDecimal = BigDecimal.ONE, val type: PaymentLineItemType = PaymentLineItemType.PRODUCT, val discountIncludingTax: BigDecimal = BigDecimal.ZERO, val taxes: List<PaymentTax> = emptyList())

Line item used in Terminal API payment requests.

Link copied to clipboard
Link copied to clipboard
data class PaymentTax(val title: String, val rate: BigDecimal)
Link copied to clipboard
data class PostalAddress(val countryCode: String, val givenName: String? = null, val familyName: String? = null, val organization: String? = null, val street: String? = null, val postcode: String? = null, val city: String? = null)
Link copied to clipboard
data class ProtocolData(val transactionSequenceCounter: Long? = null, val authorizationResponseCode: String? = null, val authorizationCode: String? = null, val terminalID: String? = null, val resultCode: String? = null, val resultMessage: String? = null, val originalTransactionSequenceCounter: Long? = null)

Protocol-specific data associated with a completed transaction.

Link copied to clipboard
Link copied to clipboard
data class Receipt(val content: String, val receiptType: ReceiptType, val receiptFormat: ReceiptFormat = ReceiptFormat.TEXT)
Link copied to clipboard
Link copied to clipboard
data class ReceiptResult(val receipts: List<Receipt>)

Receipts returned with transaction and batch results when available.

Link copied to clipboard
Link copied to clipboard
data class RefundRequest @JvmOverloads constructor(val amount: BigDecimal, val transactionReferenceNumber: String? = null, val acquirerId: String? = null, val receiptFormat: ReceiptFormat = ReceiptFormat.TEXT, val showTransactionResultScreens: Boolean? = null, val currency: String = "CHF", val language: String? = null, val merchantReference: String = "", val base: BaseTransactionRequest? = null)

Request for creating a refund transaction context.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ReservedTransaction(val transactionReferenceNumber: String, val merchantReference: String, val amount: BigDecimal, val currency: String, val acquirerId: String, val panHash: PanHashResponse? = null, val receipt: ReceiptResult? = null)

Acquirer-created reservation data.

Link copied to clipboard
data class ReversalRequest @JvmOverloads constructor(val receiptFormat: ReceiptFormat = ReceiptFormat.TEXT, val showTransactionResultScreens: Boolean? = null)

Request for creating a void transaction context.

Link copied to clipboard
Link copied to clipboard

Terminal API payment-domain operations.

Link copied to clipboard

Shared request payload for purchase and reservation context creation.

Link copied to clipboard
abstract class TransactionResult(val type: TransactionResultType, val outcome: RequestOutcome, val receipt: ReceiptResult?, val transactionId: String? = null)

Java-compatible base class for Terminal API transaction results.

Link copied to clipboard

Core transaction type used when creating purchase or reservation contexts.

Functions